package ModelImplementation

import "time"

type SalesReceipt struct {
	itsSaleDate time.Time
	itsAmount float64
}

func(s SalesReceipt) SalesReceipt(saleDate time.Time, amount float64) SalesReceipt{
	s.itsSaleDate = saleDate
	s.itsAmount = amount
	return s
}

func(s SalesReceipt) GetAmount() float64{
	return s.itsAmount
}

func(s SalesReceipt) GetSaleDate() time.Time{
	return s.itsSaleDate
}

